using System;

using Sce.PlayStation.Core;
using Sce.PlayStation.Core.Environment;

namespace Nyanimals
{
	public class AppMain
	{
		private static CGame game;
		
		public static void Main (string[] args)
		{
			Initialize ();

			while (game.Running)
			{
				SystemEvents.CheckEvents ();
				Update ();
				Render ();
			}
			Shutdown();
		}

		public static void Initialize ()
		{
			game = CGame.Instance;
			game.Init();
		}
		
		public static void Shutdown()
		{
			game.Shutdown();
		}

		public static void Update ()
		{
			game.Update();
		}

		public static void Render ()
		{
			game.Render();
		}
	}
}
